<template>
  <nav class="navbar has-shadow" style="background:rgb(51, 58, 104);color:whitesmoke">
    <div class="container" >
      <div class="navbar-brand">
        <a class="navbar-item" >
          <img src="../assets/pku.png" style="background-size:cover;max-width: 32px" width="32" height="21.29">
          <b>&nbsp;&nbsp;智能标注</b>
        </a>
        <a class="navbar-item" href="/projects/1/docs/">
            <span class="icon">
              <i class="fas fa-edit"></i>
            </span>
          <b>返回</b>
        </a>
      </div>
      <div id="topNav" class="navbar-menu">
        <div class="navbar-end">

          <a id="project_button" class="navbar-item" href="{% url 'projects' %}">
            <span>项目</span>
          </a>

          <a class="navbar-item" href="{% url 'logout' %}">
            <span>退出登录</span>
          </a>

        </div>
      </div>
    </div>
  </nav>

</template>

<script>
export default {
  name: "Header"
}
</script>

<style scoped>
.navbar.has-shadow {
  box-shadow: 0 1px 4px rgb(0 0 0);
}
.navbar.has-shadow {
  box-shadow: 0 2px 0 0 #f5f5f5;
}
.navbar {
  background-color: #2a2e2f;
}
@media screen and (min-width: 1088px) {
  .navbar {
    min-height: 3.25rem;
  }
}
@media screen and (min-width: 1088px) {
  .navbar, .navbar-end, .navbar-menu, .navbar-start {
    align-items: stretch;
    display: flex;
  }
}
.navbar {
  background-color: #fff;
  min-height: 3.25rem;
  position: relative;
  z-index: 30;
}

.navbar>.container {
  align-items: stretch;
  display: flex;
  min-height: 3.25rem;
  /*width: 100%;*/
}
@media screen and (min-width: 1088px) {
  .container {
    max-width: 960px;
    width: 960px;
  }
}
@media screen and (min-width: 1280px) {
  .container {
    max-width: 1152px;
    width: 1152px;
  }
}
@media screen and (min-width: 1472px) {
  .container {
    max-width: 1344px;
    width: 1344px;
  }
}
.container {
  margin: 0 auto;
  position: relative;
}
@media screen and (min-width: 1088px) {
  .container > .navbar .navbar-brand, .navbar > .container .navbar-brand {
    margin-left: -1rem;
  }
}
.navbar-brand, .navbar-tabs {
  align-items: stretch;
  display: flex;
  flex-shrink: 0;
  min-height: 3.25rem;
}

a.navbar-item {
  cursor: pointer;
}
.navbar-item {
  color: white;
}
@media screen and (min-width: 1088px) {
  .navbar-item, .navbar-link {
    align-items: center;
    display: flex;
  }
}
.navbar-item {
  flex-grow: 0;
  flex-shrink: 0;
}
.navbar-item, .navbar-link {
  line-height: 1.5;
  padding: .5rem .75rem;
  position: relative;
}
a, .more {
  text-decoration: none;
  cursor: pointer;
  color: #2085bc;
  font-weight: bold;
  transition: color 0.2s ease, opacity 0.2s ease;
}


@media screen and (min-width: 1088px) {
  .container > .navbar .navbar-menu, .navbar > .container .navbar-menu {
    margin-right: -1rem;
  }
}
@media screen and (min-width: 1088px) {
  .navbar-menu {
    flex-grow: 1;
    flex-shrink: 0;
  }
}
@media screen and (min-width: 1088px) {
  .navbar, .navbar-end, .navbar-menu, .navbar-start {
    align-items: stretch;
    display: flex;
  }
}

@media screen and (min-width: 1088px) {
  .navbar-end {
    justify-content: flex-end;
    margin-left: auto;
  }
}
@media screen and (min-width: 1088px) {
  .navbar, .navbar-end, .navbar-menu, .navbar-start {
    align-items: stretch;
    display: flex;
  }
}

*, ::after, ::before {
  box-sizing: inherit;
}
</style>